<%@page import="com.shurdroides.sintesi.ServerHelper"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="com.shurdroides.sintesi.*" %>
<%@ page import="com.google.appengine.api.users.User" %>
<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%@ page import="javax.persistence.EntityManager" %>
<%@ include file="header.html" %>
<%
EntityManager em = EMF.get().createEntityManager();
ServerHelper server=new ServerHelper(em);
List<Usuario> ranking = new ArrayList();
ranking=server.getRanking();

%>
 <div id="main" class="mod-con">
      <div class="container clearfix">
        <div id="about-page" class="main-con">
          <div class="content">
           <p><strong>RANKING D'USUARIS DE L'APLICACIÓ</strong></p>
      <% for(int x=0; x<ranking.size(); x++){
out.println("<p align=\"center\">" + ranking.get(x).getNombre()+" -- "+ranking.get(x).getPuntos()+" -- "+ranking.get(x).getPais()+"</p>");
}
%>
</div>
</div>

</div>
<div class="footer-wrap">
 <p><img src="image/android_logo.gif" alt="" width="150px" height="150px"/></p>
<p>Para Android</p>
</div>
</body>
</html>
</body>
</html>